import request from '../utils/request'
// 列表
export const list = (params) => request({ url: '/business/productCategory/categoryTree', params })
// 添加
export const add = (data) => request({ url: '/business/productCategory/add', data, method: 'post' })
// 获取分类
export const getParent = () => request({ url: 'business/productCategory/getParentCategoryTree' })
// 编辑
export const update = (data, id) => request({ url: `/business/productCategory/update/${id}`, data, method: 'put' })
// 删除
export const deleteFn = (id) => request({ url: `/business/productCategory/delete/${id}`, method: 'delete' })
